package com.moke.hit
{
	import flash.display.Graphics;

	/**
	 * 网格单位信息数据
	 * @author moke
	 */ 
	public class GridInfo
	{
		private var _rowIndex:uint ;
		private var _columnIndex:uint ;
		private var _hitObjects:Vector.<IHitObject> ;
		
		public function GridInfo(rowIndex:uint,columnIndex:uint)
		{
			this._rowIndex = rowIndex ;
			this._columnIndex = columnIndex ;
		}
		
		public function addHitObject(hitObject:IHitObject):void
		{
			if(_hitObjects == null)
			{
				_hitObjects = new Vector.<IHitObject>();
			}
			_hitObjects.push(hitObject) ;
		}
		
		public function get rowIndex():uint{
			return _rowIndex ;
		}
		
		public function get columnIndex():uint
		{
			return _columnIndex ;
		}
		
		public function get hitObjects():Vector.<IHitObject>
		{
			return _hitObjects ;
		}
	}
}